package test4;

public abstract class Pet {
    public String name;
    public int health;//健康health
    public int love;//亲密度

    public Pet() {
    }

    public Pet(String name, int health, int love) {
        this.name = name;
        this.health = health;
        this.love = love;
    }

    abstract void eat();
    abstract void show();
}
